<?php 
$tdest="td_subsidiotasa";
$idp=2974;
$idf=162;
$valplazo=0;

if ($id<>"") {
$SQL="SELECT * FROM $tdest WHERE idpreg=$idp AND id=$id";
$valpreg=$forms2->Execute($SQL) or DIE ("Error: $SQL");
$val=$valpreg->Fields("valor");
}

$SQL="SELECT * FROM tablaopciones WHERE idopcion=203 ORDER BY valor";
$ops=$forms2->Execute($SQL) or DIE ("Error: $SQL");
$selected=false; 
?>
<table><tr><td><?php
	while (!$ops->EOF){
	$sel="";
	if ($val==$ops->Fields("valor")) $sel="checked";?>
	<input type='radio' name='AUX2974[]' <?=$sel?> value="<?=$ops->Fields("valor")?>" disabled required>
	<?=$ops->Fields("texto");
	echo "&nbsp;";
	$ops->Movenext();
	}?>
</td><td id='_AUX2974[]'></td></tr>
</table>
<input type="hidden" name="D2974" value="<?=$val?>">